<template>
  <div class="dog">
    <img :src="pic" alt="">
    <p>{{name}}</p>
  </div>
</template>

<script>
export default {
  props:['pic','name']
}
</script>

<style>
.dog {
  width: 200px;
  border: 1px solid black;
  text-align: center;
  float: left;
}

.dog img {
  width: 100%;
  height: 200px;
}
</style>